<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3选择器</title>
<style>
	p:nth-of-type(3){ background:red; }
	p:nth-child(3){ background:blue; }
</style>
</head>
<body>
<p>HTML</p>
<div>CSS</div>
<p>JavaScript</p>
<p>PHP</p>
</body>
</html>
